<template>
	<view>
		<view class="echange_box">
			<view class="echange" @click="halve(1)">

				<image src="@/static/fr.png" mode=""></image><text>分润设置</text>
			</view>
			<view class="echange" @click="halve(2)">

				<image src="@/static/fx.png" mode=""></image><text>返现设置</text>
			</view>
			<view class="echange" @click="halve(3)">

				<image src="@/static/llk.png" mode=""></image><text>流量卡设置</text>
			</view>
			<view class="echange" @click="halve(4)">
				<image src="@/static/db.png" mode=""></image><text>达标设置</text>
			</view>
			<view class="echange" @click="halve(5)">

				<image src="@/static/zc.png" mode=""></image><text>政策设置</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			halve(index) {
				uni.navigateTo({
					url: '/pages/version5/index/rate_setup/rate_halve/rate_halve?sign=' + index,
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.echange_box {
		padding: 30rpx;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;

		.echange {
			width: 47%;
			height: 200rpx;
			padding: 20rpx;
			box-sizing: border-box;
			border-radius: 15rpx;
			margin-bottom: 30rpx;
			color: #fff;
			font-size: 32rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			// align-items: flex-end;

			text {
				display: block;
				width: 100%;
				text-align: start;
			}

			image {
				width: 60rpx;
				height: 60rpx;
			}
		}

		.echange:nth-child(5n+1) {
			background-image: linear-gradient(to right, #1296db, #6ec0d2);
		}

		.echange:nth-child(5n+2) {
			background-image: linear-gradient(to right, #f3b86a, #faca7c);
		}

		.echange:nth-child(5n+3) {
			background-image: linear-gradient(to right, #f0926c, #fc9972);
		}

		.echange:nth-child(5n+4) {
			background-image: linear-gradient(to right, #b28ff7, #b894ff);
		}

		.echange:nth-child(5n+5) {
			background-image: linear-gradient(to right, #74d284, #81ea93);
		}
	}
</style>